|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectamigo.Amigo
public abstract class Amigo
The class that interacts with the physical Amigo. This class will load a library on which it can perform some basic operations for controlling a robot.
This class is abstract because it does not provide support for the Amigo camera module. Implement the getCameraValue method in a subclass to get a fully functional robot! [BTN][SdJ]
| Constructor Summary | |
|---|---|
Amigo()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
connect()
Connect the robot. |
void |
disconnect()
Disconnect the robot. |
abstract RADataType |
getCameraValue()
Implement this method for camera operation to work. |
java.lang.String[] |
getSensorIDs()
Return the sensor id's in use by the robot. |
RADataType |
getSensorValue(java.lang.String sensor_id)
Return the sensor value of the sensor indicated with the id specified. |
void |
initRobot()
The init methods are used to create the robot on the server. |
void |
initRobot(int maxSpeed)
The init methods are used to create the robot on the server. |
void |
robotGo(double speed,
double angle)
Command the robot to go somewhere! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Amigo()
| Method Detail |
|---|
public final void initRobot()
public final void initRobot(int maxSpeed)
public final void connect()
connect in interface RAExternalAgentInterfacepublic final void disconnect()
disconnect in interface RAExternalAgentInterface
public final void robotGo(double speed,
double angle)
robotGo in interface RAExternalAgentInterfacepublic final java.lang.String[] getSensorIDs()
getSensorIDs in interface RAExternalAgentInterface
public final RADataType getSensorValue(java.lang.String sensor_id)
throws RAException
getSensorValue in interface RAExternalAgentInterfaceRAException
public abstract RADataType getCameraValue()
throws RAException
RAException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||